package com.ocgs.dao;

import com.ocgs.base.core.exception.BaseDAOException;
import com.ocgs.model.Product;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bryant
 * Date: 10/21/12
 * Time: 10:48 PM
 * To change this template use File | Settings | File Templates.
 */
public interface ProductDAO {

    public int deleteByPrimaryKey(Integer id) throws BaseDAOException;

    public int insert(Product record) throws BaseDAOException;

    public int insertSelective(Product record) throws BaseDAOException;

    public Product selectByPrimaryKey(Integer id) throws BaseDAOException;

    public int updateByPrimaryKeySelective(Product record) throws BaseDAOException;

    public int updateByPrimaryKey(Product record) throws BaseDAOException;

    public List<Product> findAllProduct(Product product) throws BaseDAOException;

    public List<Product> getAllProduct() throws BaseDAOException;

    public List<Product> searchStorage(Product product) throws BaseDAOException;
}
